#pragma once
#include "../event.h"
#include <memory>
#include <unistd.h>
#include <fcntl.h>
#include "AbstractChannel.h"
namespace TinyRPC{

/** event 要与Channel 绑定*/

class WakeupChannel : public AbstractChannel{
public:
    WakeupChannel();

    void read();
    void write();
    void wakeupUpdateEvent(EventLoop * loop);
private:    
    EventLoop * m_ownerLoop;
};

}
